import { Key } from 'react'
import { createFetch } from '@/utils/request'
import { IResponseData } from '@/services'
import * as API from '@/services'

/*
export async function queryXlDocuments(
  params: API.XlDocumentPageQueryParams,
): Promise<API.RespPageResult<API.XlDocument>> {
  return request('/api/v1/xl-document', {
    params,
  });
}
*/

export async function queryXlDocument(bizId: Key) {
  return createFetch<any, IResponseData<API.XlDocument>>(`/api/v1/xl-document/${bizId}`, 'GET')(undefined)
}
